- content_for :meta do
  %meta{:name => "Description", :content => "This is a listing of all the comments people have made on my music, shows, and videos"}
  %meta{:name => "Abstract", :content => "Comments"}
  %meta{:name => "Keywords", :content => "jetty rae, music, comments"}
- content_for :title do
  = "- comments on my music, shows, and videos"
%div.heading
  %img.heading{:src => "/images/headings/recent_comments.jpg", :title => "Comments", :alt => "Comments"}
#clear_fix
%ol.comment_list
  - @comments.each do |comment|
    %li.comment
      - if logged_in? && current_user.is_admin?
        %div.delete_comment
          - form_for comment, comments_url, :html => {:method => :delete} do |form|
            = submit_tag "x"
      - if comment.for_video?
        %div.comment_video
          %a{:href => video_url(comment.video), :title => comment.video.name, :alt => comment.video.name}
            %img.video_thumb{:src => comment.video.thumbnail, :title => comment.video.name, :alt => comment.video.name}
      - if comment.for_photo?
        %div.comment_photo
          %a{:href => photo_url(comment.photo), :title => (comment.photo.caption ? comment.photo.caption : comment.photo.filename), :alt => (comment.photo.caption ? comment.photo.caption : comment.photo.filename)}
            %img.photo_thumb{:src => comment.photo.public_filename(:thumb), :title => (comment.photo.caption ? comment.photo.caption : comment.photo.filename), :alt => (comment.photo.caption ? comment.photo.caption : comment.photo.filename)}
      - if comment.for_song?
        %div.comment_song
          About the song "
          %a{:href => song_url(comment.song), :title => comment.song.name, :alt => comment.song.name}= comment.song.name
          "
          %object{:height => "17", :width => "17", :data => "/assets/button/musicplayer.swf?&b_colors=80FF00,257b00,80FF00,FF0000&playlist_url=" + song_url(comment.song) + ".xml", :type => "application/x-shockwave-flash"}
            %param{:value => "/assets/button/musicplayer.swf?playlist_url=" + song_url(comment.song) + ".xml", :name => "movie"}
            %img{:height => "17", :width => "17", :alt => "play", :src => "/assets/noflash.gif"}
      - if comment.for_show?
        %div.comment_show
          About the show "
          %a{:href => show_url(comment.show), :title => comment.show.location, :alt => comment.show.location}= comment.show.location
          "
      %a.comment_user{:href => user_url(comment.user)}= comment.user.login
      said:
      %p.comment_date= comment.created_at.strftime("%B %o at %I:%M %p")
      %p.comment_text= "\"#{comment.text}\""